package com.xr.blog.dao;

import com.xr.blog.pojo.BlogComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 评论表
 * 
 * @author XRJ
 * @email 1033835209@qq.com
 * @date 2020-07-16 12:37:49
 */
@Repository
public interface BlogCommentMapper extends BaseMapper<BlogComment> {
    /**
     * 查询最新的评论
     * @param count 需要查询的评论数量
     * @param showCheck 是否查询待审核的评论
     * @return
     */
    List<BlogComment> findLatestComments(@Param("count") Integer count,@Param("showCheck") boolean showCheck);
}
